package org.libraq.hrm.feign;

import org.libraq.hrm.doc.CourseDoc;
import org.libraq.hrm.fallback.CourseFeignClientFallbackFactory;
import org.libraq.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "search-server", fallbackFactory = CourseFeignClientFallbackFactory.class )
public interface CourseFeignClient {

    @RequestMapping(value = "/es/course",method = RequestMethod.POST)
    AjaxResult save(@RequestBody CourseDoc doc);

}
